package com.shiroha.user.mapper;

import com.mybatisflex.core.BaseMapper;
import com.shiroha.common.pojo.dto.ChatGroupDTO;
import com.shiroha.user.pojo.ChatGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.UUID;

@Mapper
public interface ChatGroupMapper extends BaseMapper<ChatGroup> {
    List<ChatGroupDTO> selectChatGroupListByUserId(@Param("userId") UUID userId);

    int deleteGroup(@Param("userId") UUID userId, @Param("groupId") Long groupId);

    ChatGroupDTO selectChatGroupByGroupId(@Param("groupId") Long groupId);
}
